package com.example.demo.server;

import com.example.demo.controller.UserController;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2023-03-12
 * Time: 16:47
 */

@Service
public class UserServer {

    @Autowired
    private UserMapper userMapper;

    public int add(String username,String password,String photo) {
        return userMapper.add(username,password,photo);
    }
}
